﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CompositePattern.GeneralDemoOne
{
    /// <summary>
    /// 樹葉構件
    /// </summary>
    public class Leaf : Component
    {
        public override void add(Component component)
        {
            throw new NotImplementedException();
        }

        public override string doSomething()
        {
            return "leaf tree";
        }

        public override List<Component> getChildren()
        {
            throw new NotImplementedException();
        }

        public override void remove(Component component)
        {
            throw new NotImplementedException();
        }
    }
}
